package com.flute.tools.sql;

public class SQLTable implements ISQL {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1954729741879429984L;
	private FieldsSQL fields;

	public SQLTable() {
		this.fields = new FieldsSQL();
	}

	public void addTable(String table) {
		this.fields.addField(table);
	}

	@Override
	public String getSQLString() {
		if (fields.size() == 0) {
			return "";
		} else {
			return SQLUtils.BLANK + fields.getSQLString() + SQLUtils.BLANK;
		}
	}
}
